home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 25 / Cream of the Crop 25.iso / os2 / gnuwget.zip / wget-1.4.3 / src / netrc.h < prev    next >
C/C++ Source or Header  |  1997-02-07  |  1KB  |  31 lines

  1. /* Declarations for netrc.c
  2.    Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc.
  3.    
  4.    This program is free software; you can redistribute it and/or modify
  5.    it under the terms of the GNU General Public License as published by
  6.    the Free Software Foundation; either version 2 of the License, or
  7.    (at your option) any later version.
  8.    
  9.    This program is distributed in the hope that it will be useful,
  10.    but WITHOUT ANY WARRANTY; without even the implied warranty of
  11.    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  12.    GNU General Public License for more details.
  13.    
  14.    You should have received a copy of the GNU General Public License
  15.    along with this program; if not, write to the Free Software
  16.    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
  17.  
  18.  
  19. typedef struct _acc_t {
  20.   char *host; /* This is NULL if this is the default machine entry. */
  21.   char *acc;
  22.   char *passwd; /* This is NULL if there is no password. */
  23.   struct _acc_t *next;
  24. } acc_t;
  25.  
  26. #define NETRC_FILE_NAME ".netrc"
  27.  
  28. void search_netrc PARAMS((const char *, const char **, const char **, int));
  29. acc_t *parse_netrc PARAMS((const char *));
  30. void free_netrc PARAMS((acc_t *l));
  31.